/*
 * *
 *  * Copyright (c) iwindplus Technologies Co., Ltd.2024-2030, All rights reserved.
 *
 *
 */

package com.iwindplus.mgt.domain.constant;

import com.iwindplus.boot.domain.constant.CommonConstant;

/**
 * 常数.
 *
 * @author zengdegui
 * @since 2020/11/8
 */
public class MgtConstant {
    private MgtConstant() {
        throw new IllegalStateException(CommonConstant.UTILITY_CLASS);
    }

    /**
     * 管理服务名.
     */
    public static final String MGT_SERVER_NAME = "iwindplus-mgt";

    /**
     * 初始化备注.
     */
    public static final String REMARK_INIT = "init data";

    /**
     * 服务路由topic通道.
     */
    public static final String TOPIC_SERVER_ROUTE = "topicServerRoute";

    /**
     * API白名单topic通道.
     */
    public static final String TOPIC_API_WHITE_LIST = "topicApiWhiteList";

    /**
     * IP黑名单topic通道.
     */
    public static final String TOPIC_IP_BLACK_LIST = "topicIpBlackList";

    /**
     * 服务相关常数.
     */
    public static class ServerConstant {
        private ServerConstant() {
            throw new IllegalStateException(CommonConstant.UTILITY_CLASS);
        }

        /**
         * 动态路由key.
         */
        public static final String GENKEY_0 = "_genkey_0";

        /**
         * 路径.
         */
        public static final String PATH = "Path";
    }

    /**
     * 微信授权登录相关常数.
     */
    public static class WechatConstant {
        private WechatConstant() {
            throw new IllegalStateException(CommonConstant.UTILITY_CLASS);
        }

        /**
         * code.
         */
        public static final String CODE = "code";

        /**
         * 绑定标记.
         */
        public static final String BIND_FLAG = "bindFlag";

        /**
         * 昵称.
         */
        public static final String NICK_NAME = "nickName";

        /**
         * 性别.
         */
        public static final String SEX = "sex";

        /**
         * 头像.
         */
        public static final String AVATAR = "avatar";

        /**
         * 国家.
         */
        public static final String COUNTRY = "country";

        /**
         * 省份.
         */
        public static final String PROVINCE = "province";

        /**
         * 城市.
         */
        public static final String CITY = "city";
    }
}
